list-[id].vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604
  1. <template>
  2. <!-- 头部 -->
  3. <templateHead></templateHead>
  4. <!-- 菜单 -->
  5. <templateMenu></templateMenu>
  6. <!-- 内容 -->
  7. <div>
  8. <!--广告组件-->
  9. <templateAd :adTag="'bbzxw_list_2'" :skinId="skinId" :adData="adData"></templateAd>
  10. <!--列表组件-->
  11. <templateList :skinId="skinId" :templateData="testTemplateData" :routeId="routeId" :pageData="pageData"></templateList>
  12. </div>
  13. <!-- 底部 -->
  14. <templateFoot></templateFoot>
  15. </template>
  16. <script setup>
  17. //0.加载全局模板组件 start---------------------------------------->
  18. //0.1全局通栏
  19. import templateHead from '@/components/template/sector/head/1200x200/1.vue'
  20. import templateMenu from '@/components/template/sector/menu/1200x130/1.vue'
  21. import templateFoot from '@/components/template/sector/foot/1200x580/1.vue'
  22. //0.2局部通栏
  23. //0.2.1广告组件
  24. import templateAd from '@/components/template/sector/body/ad/1200x90/1.vue'
  25. //0.2.3列表组件
  26. import templateList from '@/components/template/sector/body/list/list/1200x1220/1.vue'
  27. //0.加载全局模板组件 end---------------------------------------->
  28. //1.获得基本信息单元 start---------------------------------------->
  29. //1.1获得页面依赖
  30. import { ref, onMounted } from 'vue';
  31. //1.2使用url查询导航池id
  32. const targetSegment = getRoutePath(1);//当前页面的url路径 这是第一层 所以获得域名后面的第一层url
  33. const routeId = ref("");//当前url路径代表的cid
  34. const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
  35. method: 'GET',
  36. query: {
  37. 'pinyin': targetSegment,
  38. },
  39. });
  40. if (getRouteId.code == 200) {
  41. routeId.value = getRouteId.data.category_id
  42. }
  43. //1.3获得二级导航
  44. const navigateData = await requestDataPromise('/web/getWebsiteModelCategory', {
  45. method: 'GET',
  46. query: {
  47. 'placeid': 1,
  48. 'pid': routeId.value,
  49. 'num': 8
  50. },
  51. });
  52. //1.4获得pinia源
  53. import { useTemplateBaseStore } from '@/stores/templateBase'
  54. const templateBaseStore = useTemplateBaseStore()
  55. //1.5获得该页的皮肤id - 在每个组件中也是同样的获得方法
  56. const skinId = ref("")
  57. //1.6获得站点基本信息
  58. const responseStatus = await requestDataPromise('/web/getWebsiteAllinfo', {
  59. method: 'GET',
  60. query: {
  61. 'link_textnum':24,
  62. 'link_imgnum':18,
  63. 'link_footnum':4
  64. },
  65. });
  66. if (responseStatus.code == 200) {
  67. //1.6.1设置站点基本信息
  68. templateBaseStore.setWebSiteInfo(responseStatus.data)
  69. //1.6.2设置皮肤id
  70. skinId.value = templateBaseStore.webSiteInfo.website_foot.foot_info.template_id;
  71. }
  72. //1.7获得广告池
  73. const adData = ref([]);
  74. const adResponseStatus = await requestDataPromise('/web/getWebsiteAdvertisement', {
  75. method: 'GET',
  76. query: {},
  77. });
  78. if (adResponseStatus.code == 200) {
  79. templateBaseStore.setAdList(adResponseStatus.data)
  80. adData.value = adResponseStatus.data;
  81. }
  82. //1.8.seo
  83. const setData = await requestDataPromise('/web/getWebsiteCategoryHead', {
  84. method: 'GET',
  85. query: {
  86. 'catid': routeId.value
  87. },
  88. });
  89. let seoTitle = setData.data.seo_title;
  90. let seoDescription = setData.data.seo_description;
  91. let seoKeywords = setData.data.seo_keywords;
  92. let seoSuffix = setData.data.suffix;
  93. let seoName = setData.data.website_name;
  94. useSeoMeta({
  95. title: seoTitle + "_" + seoSuffix,
  96. meta: [
  97. { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
  98. { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix, tagPriority: 10 }
  99. ]
  100. });
  101. //1.获得基本信息单元 end---------------------------------------->
  102. //2.页面数据 start---------------------------------------->
  103. //2.0 测试数据 后期移除
  104. const testTemplateData = {
  105. "sectorName": "text",
  106. "componentList": [
  107. {
  108. "component_type": 1,//1=新闻 2=广告
  109. "component_style": 1,//样式
  110. "sort": 1,//组件位置
  111. "data": {
  112. "alias":"一级导航名称",
  113. "category_id": 11,
  114. "pinyin": "nongyeshengchan",
  115. "text": [
  116. {
  117. "id": 2863,
  118. "title": "1以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  119. "islink": 0,
  120. "pinyin": "nongminxinnongcun/nongcunxinfangshe"
  121. },
  122. {
  123. "id": 50129,
  124. "title": "2以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  125. "islink": 0,
  126. "pinyin": "sannongzixun"
  127. },
  128. {
  129. "id": 50129,
  130. "title": "3以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  131. "islink": 0,
  132. "pinyin": "sannongzixun"
  133. },
  134. {
  135. "id": 2862,
  136. "title": "4以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  137. "islink": 0,
  138. "pinyin": "sannongzixun/buweidongtai"
  139. },
  140. {
  141. "id": 50126,
  142. "title": "5以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  143. "islink": 0,
  144. "pinyin": "sannongzixun"
  145. },
  146. {
  147. "id": 3976,
  148. "title": "6以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  149. "islink": 0,
  150. "pinyin": "sannongzixun"
  151. },
  152. {
  153. "id": 50189,
  154. "title": "7以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  155. "islink": 0,
  156. "pinyin": "nongminhezuoshe"
  157. },
  158. {
  159. "id": 50190,
  160. "title": "8以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  161. "islink": 0,
  162. "pinyin": "nongminhezuoshe"
  163. }
  164. ],
  165. "img": [
  166. {
  167. "id": 50129,
  168. "title": "1以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  169. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  170. "author": "linyuting123",
  171. "updated_at": "2025-05-30 13:50:54",
  172. "introduce": "以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  173. "islink": 0,
  174. "linkurl": "",
  175. "copyfrom": "以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  176. "cat_arr_id": "[1,201]",
  177. "catid": 201,
  178. "level": "[1,2,3]",
  179. "pinyin": "sannongzixun"
  180. },
  181. {
  182. "id": 50129,
  183. "title": "2以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  184. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  185. "author": "佚名",
  186. "updated_at": "2025-05-30 13:50:46",
  187. "introduce": "描述",
  188. "islink": 0,
  189. "linkurl": "",
  190. "copyfrom": "本网",
  191. "cat_arr_id": "[2]",
  192. "catid": 2,
  193. "level": "[2,3]",
  194. "pinyin": "sannongzixun"
  195. },
  196. {
  197. "id": 50129,
  198. "title": "3以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  199. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  200. "author": "佚名",
  201. "updated_at": "2025-05-30 13:50:45",
  202. "introduce": "描述",
  203. "islink": 0,
  204. "linkurl": "",
  205. "copyfrom": "本网",
  206. "cat_arr_id": "[1]",
  207. "catid": 1,
  208. "level": "[2]",
  209. "pinyin": "sannongzixun"
  210. },
  211. {
  212. "id": 50129,
  213. "title": "4以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  214. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  215. "author": "佚名",
  216. "updated_at": "2025-05-30 13:50:44",
  217. "introduce": "描述",
  218. "islink": 0,
  219. "linkurl": "",
  220. "copyfrom": "本网",
  221. "cat_arr_id": "[11]",
  222. "catid": 11,
  223. "level": "[2]",
  224. "pinyin": "xinnongcun"
  225. },
  226. {
  227. "id": 50129,
  228. "title": "5以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  229. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  230. "author": "佚名",
  231. "updated_at": "2025-05-30 13:50:43",
  232. "introduce": "描述",
  233. "islink": 0,
  234. "linkurl": "",
  235. "copyfrom": "本网",
  236. "cat_arr_id": "[14,240]",
  237. "catid": 240,
  238. "level": "[2,3]",
  239. "pinyin": "sannongzixun"
  240. },
  241. {
  242. "id": 50129,
  243. "title": "6以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙6",
  244. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  245. "author": "佚名",
  246. "updated_at": "2025-04-16 11:04:29",
  247. "introduce": "描述",
  248. "islink": 0,
  249. "linkurl": "",
  250. "copyfrom": "本网",
  251. "cat_arr_id": null,
  252. "catid": 36,
  253. "level": "[2]",
  254. "pinyin": "sannongzixun"
  255. }
  256. ]
  257. }
  258. },
  259. {
  260. "component_type": 1,//1=新闻 2=广告
  261. "component_style": 1,//样式
  262. "sort": 1,//组件位置
  263. "data": {
  264. "alias":"最新资讯",
  265. "category_id": 11,
  266. "pinyin": "sannongzixun/zhengcefagui",
  267. "text": [
  268. {
  269. "id": 2863,
  270. "title": "1以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  271. "islink": 0,
  272. "pinyin": "nongminxinnongcun/nongcunxinfangshe"
  273. },
  274. {
  275. "id": 50129,
  276. "title": "2以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  277. "islink": 0,
  278. "pinyin": "sannongzixun"
  279. },
  280. {
  281. "id": 50129,
  282. "title": "3以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  283. "islink": 0,
  284. "pinyin": "sannongzixun"
  285. },
  286. {
  287. "id": 2862,
  288. "title": "4以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  289. "islink": 0,
  290. "pinyin": "sannongzixun/buweidongtai"
  291. },
  292. {
  293. "id": 50126,
  294. "title": "5以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  295. "islink": 0,
  296. "pinyin": "sannongzixun"
  297. },
  298. {
  299. "id": 3976,
  300. "title": "6以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  301. "islink": 0,
  302. "pinyin": "sannongzixun"
  303. },
  304. {
  305. "id": 50189,
  306. "title": "7以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  307. "islink": 0,
  308. "pinyin": "nongminhezuoshe"
  309. },
  310. {
  311. "id": 50190,
  312. "title": "8以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  313. "islink": 0,
  314. "pinyin": "nongminhezuoshe"
  315. }
  316. ],
  317. "img": [
  318. {
  319. "id": 50129,
  320. "title": "1以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  321. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  322. "author": "linyuting123",
  323. "updated_at": "2025-05-30 13:50:54",
  324. "introduce": "以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  325. "islink": 0,
  326. "linkurl": "",
  327. "copyfrom": "以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  328. "cat_arr_id": "[1,201]",
  329. "catid": 201,
  330. "level": "[1,2,3]",
  331. "pinyin": "sannongzixun"
  332. },
  333. {
  334. "id": 50129,
  335. "title": "2以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  336. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  337. "author": "佚名",
  338. "updated_at": "2025-05-30 13:50:46",
  339. "introduce": "描述",
  340. "islink": 0,
  341. "linkurl": "",
  342. "copyfrom": "本网",
  343. "cat_arr_id": "[2]",
  344. "catid": 2,
  345. "level": "[2,3]",
  346. "pinyin": "sannongzixun"
  347. },
  348. {
  349. "id": 50129,
  350. "title": "3以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  351. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  352. "author": "佚名",
  353. "updated_at": "2025-05-30 13:50:45",
  354. "introduce": "描述",
  355. "islink": 0,
  356. "linkurl": "",
  357. "copyfrom": "本网",
  358. "cat_arr_id": "[1]",
  359. "catid": 1,
  360. "level": "[2]",
  361. "pinyin": "sannongzixun"
  362. },
  363. {
  364. "id": 50129,
  365. "title": "4以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  366. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  367. "author": "佚名",
  368. "updated_at": "2025-05-30 13:50:44",
  369. "introduce": "描述",
  370. "islink": 0,
  371. "linkurl": "",
  372. "copyfrom": "本网",
  373. "cat_arr_id": "[11]",
  374. "catid": 11,
  375. "level": "[2]",
  376. "pinyin": "xinnongcun"
  377. },
  378. {
  379. "id": 50129,
  380. "title": "5以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  381. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  382. "author": "佚名",
  383. "updated_at": "2025-05-30 13:50:43",
  384. "introduce": "描述",
  385. "islink": 0,
  386. "linkurl": "",
  387. "copyfrom": "本网",
  388. "cat_arr_id": "[14,240]",
  389. "catid": 240,
  390. "level": "[2,3]",
  391. "pinyin": "sannongzixun"
  392. },
  393. {
  394. "id": 50129,
  395. "title": "6以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙6",
  396. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  397. "author": "佚名",
  398. "updated_at": "2025-04-16 11:04:29",
  399. "introduce": "描述",
  400. "islink": 0,
  401. "linkurl": "",
  402. "copyfrom": "本网",
  403. "cat_arr_id": null,
  404. "catid": 36,
  405. "level": "[2]",
  406. "pinyin": "sannongzixun"
  407. }
  408. ]
  409. }
  410. },
  411. {
  412. "component_type": 1,//1=新闻 2=广告
  413. "component_style": 1,//样式
  414. "sort": 3,//组件位置
  415. "data": {
  416. "alias":"热点精选",
  417. "category_id": 11,
  418. "pinyin": "sannongzixun/zhengcefagui",
  419. "text": [
  420. {
  421. "id": 2863,
  422. "title": "1以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  423. "islink": 0,
  424. "pinyin": "nongminxinnongcun/nongcunxinfangshe"
  425. },
  426. {
  427. "id": 50129,
  428. "title": "2以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  429. "islink": 0,
  430. "pinyin": "sannongzixun"
  431. },
  432. {
  433. "id": 50129,
  434. "title": "3以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  435. "islink": 0,
  436. "pinyin": "sannongzixun"
  437. },
  438. {
  439. "id": 2862,
  440. "title": "4以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  441. "islink": 0,
  442. "pinyin": "sannongzixun/buweidongtai"
  443. },
  444. {
  445. "id": 50126,
  446. "title": "5以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  447. "islink": 0,
  448. "pinyin": "sannongzixun"
  449. },
  450. {
  451. "id": 3976,
  452. "title": "6以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  453. "islink": 0,
  454. "pinyin": "sannongzixun"
  455. },
  456. {
  457. "id": 50189,
  458. "title": "7以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  459. "islink": 0,
  460. "pinyin": "nongminhezuoshe"
  461. },
  462. {
  463. "id": 50190,
  464. "title": "8以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  465. "islink": 0,
  466. "pinyin": "nongminhezuoshe"
  467. }
  468. ],
  469. "img": [
  470. {
  471. "id": 50129,
  472. "title": "1以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  473. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  474. "author": "linyuting123",
  475. "updated_at": "2025-05-30 13:50:54",
  476. "introduce": "以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  477. "islink": 0,
  478. "linkurl": "",
  479. "copyfrom": "以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  480. "cat_arr_id": "[1,201]",
  481. "catid": 201,
  482. "level": "[1,2,3]",
  483. "pinyin": "sannongzixun"
  484. },
  485. {
  486. "id": 50129,
  487. "title": "2以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  488. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  489. "author": "佚名",
  490. "updated_at": "2025-05-30 13:50:46",
  491. "introduce": "描述",
  492. "islink": 0,
  493. "linkurl": "",
  494. "copyfrom": "本网",
  495. "cat_arr_id": "[2]",
  496. "catid": 2,
  497. "level": "[2,3]",
  498. "pinyin": "sannongzixun"
  499. },
  500. {
  501. "id": 50129,
  502. "title": "3以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  503. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  504. "author": "佚名",
  505. "updated_at": "2025-05-30 13:50:45",
  506. "introduce": "描述",
  507. "islink": 0,
  508. "linkurl": "",
  509. "copyfrom": "本网",
  510. "cat_arr_id": "[1]",
  511. "catid": 1,
  512. "level": "[2]",
  513. "pinyin": "sannongzixun"
  514. },
  515. {
  516. "id": 50129,
  517. "title": "4以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  518. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  519. "author": "佚名",
  520. "updated_at": "2025-05-30 13:50:44",
  521. "introduce": "描述",
  522. "islink": 0,
  523. "linkurl": "",
  524. "copyfrom": "本网",
  525. "cat_arr_id": "[11]",
  526. "catid": 11,
  527. "level": "[2]",
  528. "pinyin": "xinnongcun"
  529. },
  530. {
  531. "id": 50129,
  532. "title": "5以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  533. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  534. "author": "佚名",
  535. "updated_at": "2025-05-30 13:50:43",
  536. "introduce": "描述",
  537. "islink": 0,
  538. "linkurl": "",
  539. "copyfrom": "本网",
  540. "cat_arr_id": "[14,240]",
  541. "catid": 240,
  542. "level": "[2,3]",
  543. "pinyin": "sannongzixun"
  544. },
  545. {
  546. "id": 50129,
  547. "title": "6以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙6",
  548. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  549. "author": "佚名",
  550. "updated_at": "2025-04-16 11:04:29",
  551. "introduce": "描述",
  552. "islink": 0,
  553. "linkurl": "",
  554. "copyfrom": "本网",
  555. "cat_arr_id": null,
  556. "catid": 36,
  557. "level": "[2]",
  558. "pinyin": "sannongzixun"
  559. }
  560. ]
  561. }
  562. },
  563. ],
  564. "ad": {
  565. "ad_tag": "nmw_index_0003"
  566. }
  567. }
  568. //静态链接测试数据
  569. const testTemplateData2 = {
  570. "sectorName": "linkSector",
  571. "componentList": [
  572. {
  573. "component_type": 3,
  574. "component_style": 1,
  575. "sort": 1,
  576. "componentData": {}
  577. }
  578. ],
  579. "sort": 4
  580. }
  581. //分页数据
  582. const route = useRoute();
  583. let pageNum = ref(1); //当前页码
  584. pageNum.value = parseInt(route.params.id);//路由中传递的分页页码
  585. let total = ref(100); //总条数
  586. let pageSize = ref(20); //每页条数
  587. let pageData = ref({
  588. "pageNum": pageNum.value,
  589. "pageSize": pageSize.value,
  590. "total": total.value
  591. });
  592. //2.页面数据 end---------------------------------------->
  593. </script>
  594. <style lang="less" scoped>
  595. @import url('@/assets/css/list.less');
  596. </style>